<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>用户登录</h1>
<div>
    <s:fielderror/>
</div>
<s:form action="login2">
    <div>
        用户名：<s:textfield name="username"/>
    </div>
    <div>
        密:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：<s:password name="password"/>
    </div>
    <div><s:submit value="登录"/> </div>
</s:form>
</body>
</html>
